<template>
  <el-card>
    <div class="home">
      <el-image :src="userStore.avatar" />
      <div class="container">
        <h3>{{ getTime() }}好呀{{ userStore.username }}</h3>
        <p>硅谷甄选运营平台</p>
      </div>
    </div>
  </el-card>
  <div class="bottom">
    <SvgIcon iconName="welcome" width="400px" height="500px"></SvgIcon>
  </div>
</template>

<script setup lang="ts">
import { defineOptions } from "vue";
//引入用户仓库
import useUserStore from "@/store/modules/user";
import { getTime } from "@/utils/time";
defineOptions({
  name: "Home",
});
let userStore = useUserStore();
</script>

<style scoped lang="scss">
.home {
  display: flex;
  .el-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
  }
  .container {
    margin: 0 20px;
    h3 {
      font-weight: 600;
      font-size: 30px;
    }
    p {
      margin-top: 20px;
      font-size: 18px;
      color: rgb(6, 124, 124);
    }
  }
}
.bottom{
  text-align: center;
}
</style>
